package com.dlc.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dlc.shop.bean.model.StockChangeReason;
import com.dlc.shop.bean.model.StockChangeReasonLang;
import com.dlc.shop.dao.StockChangeReasonLangMapper;
import com.dlc.shop.service.StockChangeReasonLangService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 *
 *
 * @author lhd
 * @date 2020-08-26 15:39:09
 */
@Service
@AllArgsConstructor
public class StockChangeReasonLangServiceImpl extends ServiceImpl<StockChangeReasonLangMapper, StockChangeReasonLang> implements StockChangeReasonLangService {

    private final StockChangeReasonLangMapper stockChangeReasonLangMapper;

    @Override
    public int countReason(StockChangeReason stockChangeReason, String reason) {
        return stockChangeReasonLangMapper.countReason(stockChangeReason, reason);
    }
}
